/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package BE;

/**
 *
 * @author notandi
 */
public class Song
{

    private final int id;
    private String title;
    public int artistId;
    private int bpm;
    public int categoryId;
    private int duration;
    private Boolean favorite;

    public Song(int id, String title, int artistId, int categoryId, int bpm, int duration, boolean favorite)
    {
        this.id = id;
        this.title = title;
        this.artistId = artistId;
        this.bpm = bpm;
        this.categoryId = categoryId;
        this.duration = duration;
        this.favorite = favorite;
    }

    /**
     * @return the title
     */
    public String getTitle()
    {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title)
    {
        this.title = title;
    }

    /**
     * @return the BPM
     */
    public int getBpm()
    {
        return bpm;
    }

    /**
     * @param bpm the BPM to set
     */
    public void setBpm(int bpm)
    {
        this.bpm = bpm;
    }

    /**
     * @return the duration
     */
    public int getDuration()
    {
        return duration;
    }

    /**
     * @param duration the duration to set
     */
    public void setDuration(int duration)
    {
        this.duration = duration;
    }

    /**
     * @return the id
     */
    public int getId()
    {
        return id;
    }

    /**
     * @return the categoryName
     */
  
    /**
     * @param categoryName the categoryName to set
     */
   

    /**
     * @return the favorite
     */
    public Boolean getFavorite()
    {
        return favorite;
    }

    /**
     * @param favorite the favorite to set
     */
    public void setFavorite(Boolean favorite)
    {
        this.favorite = favorite;
    }

       /**
     * @return the artistId
     */
    public int getArtistId() {
        return artistId;
    }

    /**
     * @return the categoryId
     */
    public int getCategoryId() {
        return categoryId;
    }
    
    @Override
    public String toString()
    {
        return String.format("%4d %-30s %-30s %10d %-30s %10d %s", 
                id, title, getArtistId(), bpm, getCategoryId(), duration, favorite);
    }

 
    
    
}
       
